import React from "react"
import PropTypes from "prop-types"
import "../../assets/css/base/bass.scss"

class  Preview extends React.Component{
    constructor(props){
        super(props);
    }
    hide(){

    }
    render() {
        console.log(this.props.isShowPreview);
        return (
            <div className="base-preview-box" style={{display:(this.props.isShowPreview?"block":"none")}} onClick={this.props.hide}>
                <img className="base-preview-img" src={this.props.imgsrc}/>
            </div>
        )
    }
}

module.exports=Preview
